//
//  Size-Header.swift
//  OneMeeting
//
//  Created by zhangheng on 2019/8/2.
//  Copyright © 2019 www.zhangheng.com. All rights reserved.
//

import Foundation

/////
let kWindowWidth         = CGFloat(700)
let kWindowHeight        = CGFloat(350)

let kJoinWinWidth        = CGFloat(400)
let kJoinWinHeight       = CGFloat(320)

let kNavBarHeight        = CGFloat(42)
let kNavDefBarHeight     = CGFloat(22)
let kNavTopHeight        = CGFloat(10)

let kAudioWindowWidth    = CGFloat(500)
let kAudioWindowHeight   = CGFloat(350)

var kHomeHeight:CGFloat  { return kWindowHeight-kNavBarHeight }

let kLeftWidth           = CGFloat(240)
var kRightWidth:CGFloat  { return kWindowWidth-kLeftWidth }

let kLogoX               = CGFloat(120)
let kMeetingX            = CGFloat(70)
let kMeetingX_space      = CGFloat(20)

let kLogo_LabWidth       = CGFloat(180)
let kLogo_LabHeight      = CGFloat(21)

let kIconDefault         = CGFloat(20)

let kTabarHeight         = CGFloat(38)

///版本信息
let kVersionWinWidth     = CGFloat(540)
let kVersionWinHeight    = CGFloat(270)


///设置界面
let kSetWinWidth         = CGFloat(700)
let kSetWinHeight        = CGFloat(540)

let kSet_BasicWidth      = CGFloat(600)
let kSet_BasicHeight     = CGFloat(400)
let kSet_LiveWidth       = CGFloat(700)
let kSet_LiveHeight      = CGFloat(590)

///二维码
let kQRWinWidth          = CGFloat(260)
let kQRWinHeight         = CGFloat(280)

///视频会议
let kTRTCTabarHeight     = CGFloat(60)
let KNavgationBarHeight  = CGFloat(40)

//独立
let kTRTCUserWidth       = CGFloat(320)
let kTRTCUserHeight      = CGFloat(600)
let kTRTCUserWidth_k     = CGFloat(320)

///视频会议
let kHomeWinWidth        = CGFloat(350)
let kHomeWinHeight       = CGFloat(500)

let kPushWidth           = CGFloat(640)
let kPushHeight          = CGFloat(360)

///小窗口
let kStandWidth          = CGFloat(240)
let kStandHight          = CGFloat(200)
let kStandMinHight       = CGFloat(200)
let kStandMaxWidth       = CGFloat(480)
let kStandMaxHeight      = CGFloat(400)

let kMinSubRomteWidth    = CGFloat(400)
let kMaxSubRomteWidth    = CGFloat(500)
let kSubRomteSpace       = CGFloat(0.67)
let kGirdSpace           = CGFloat(6)

///分享
let kInvWinWidth         = CGFloat(660)
let kInvWinHeight        = CGFloat(285)

//观众
var kAdcWinHeight:CGFloat {
    let kmax = KSCREENHEIGHT-20-60
    let heigth = kmax < 800 ? kmax:800
    return heigth
}

var kAdcWinWidth:CGFloat {
    let width = kTRTCWinHeight*1.2
    return width < 950 ? 950:width
}

var kTRTCWinHeight:CGFloat {
    let kmax = KSCREENHEIGHT-20-60-12
    let heigth = kmax < 800 ? kmax:800
    return heigth
}

var kTRTCWinWidth:CGFloat {
    let width = kTRTCWinHeight*1.2
    return width < 950 ? 950:width
}

let BarrgeContainerWidth      = CGFloat(300)
let BarrgeContainerNameWidth  = CGFloat(60)
